<?php

namespace App\Listeners;

use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Log;

class QueryListener
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return void
     */
    public function handle($event)
    {
        // if (isDebugging () ) {
        //     $sql = str_replace("?", "'%s'", $event->sql);

        //     $log = vsprintf($sql, $event->bindings);

        //     file_put_contents(storage_path("logs/query.php"),$log."\n",FILE_APPEND);
        // }
    }
}
